package com.atguigu.springcloud.service;

import com.atguigu.springcloud.entities.Employee;
import com.atguigu.springcloud.entities.OrderInfo;
import com.atguigu.springcloud.enums.EnumEO;
import com.atguigu.springcloud.request.SaveOrderInfoRequest;

import java.util.List;

/**
 * Created by luojie on 2018/9/7.
 */
public interface OrderInfoService {

    List<OrderInfo> findByEmployeeId(String employeeId);

    OrderInfo save(SaveOrderInfoRequest request);

    OrderInfo updateStatus(OrderInfo orderInfo, EnumEO.OrderStatus status);

    OrderInfo findById(String id);

    void saveOrderAndEmployee();

}
